export class ExpeditionOrder {

    id: string;

    /**
     * 出品单的序列号 ‘K-1-12’
     * 
     * @type {string}
     * @memberOf ExpeditionOrder
     */
    serialNo: string;

    kitchenOrderIds: [string];

    /**
     * 出品人
     * 
     * @type {{ id: string; name: string }}
     * @memberOf ExpeditionOrder
     */
    expediter: { id: string; name: string };

    /**
     * 出品人Id
     * 
     * @type {string}
     * @memberOf ExpeditionOrder
     */
    expediterId: string;
    expediteBeginTime: number;
    expediteFinishTime: number;


    /**
     * 出品单状态 init 初始化 | 已出品 | 已传菜
     * 
     * @type {string}
     * @memberOf ExpeditionOrder
     */
    status: "init" | "expedited" | "delivered" | "cancel";

    terminalId: string;

    deliveryer: { id: string; name: string };
    deliveryerId: string;
    deliveryBeginTime: number;
    deliveryFinishTime: number;

    items: ExpeditionOrderItem[];

    qty: number;

    sourceTerminalId: string;

    timeoutClass: string;
}

interface ExpeditionOrderItem {
    id: string;
    kitchenOrderId: string;
    kitchenOrderItemId: string;
    qty: number;
    inventoryId: string;
    inventoryName: string;
    inventoryCode: string;
    /**
     * 出品人
     * 
     * @type {{ id: string; name: string }}
     * @memberOf ExpeditionOrder
     */
    expediter: { id: string; name: string };

    /**
     * 出品人Id
     * 
     * @type {string}
     * @memberOf ExpeditionOrder
     */
    expediterId: string;

    /**
     * 客户标识，台桌名称 | 号牌名称
     * 
     * @type {string}
     * @memberOf ExpeditionOrderItem
     */
    customerIdentity: string;
}